import Vue from 'vue'

var mixins = {
	methods: {
		operatorComfirm(action, text) {
			this.$confirm(`此操作将永久${text}，是否继续？`, '提示', {
				confirmButtonText: '确定',
				cancelButtonText: '取消',
				type: 'warning'
			}).then(() => {
				action()
			}).catch(() => {

			})
		},
		CustomtextComfirm(action, text) {
			this.$confirm(`${text}`, '提示', {
				confirmButtonText: '确定',
				cancelButtonText: '取消',
				type: 'warning'
			}).then(() => {
				action()
			}).catch(() => {

			})
		}
	}
}
Vue.mixin(mixins)
export default {}
